<div class="business-toolbar clearfix">
	<div class="title pull-left">{{title}}</div>
	<div class="pull-right">
		{{view view.TimeRanges
			id="businessTimeRangesTopo"
			onChange="timeRangesChange"}}
		<div class="btn-group">
			{{view view.TradesAllSelect 
			id="tradesAllselect"
			tradesAllbtnTxt=tradesAllbtnTxt
			appId=appId}}
		</div>
		<div class="input-append">
			{{input class="input span3" value=keyWord placeholder="关键字, 节点IP"}}
			<button class="btn btn-primary" {{action "search"}}>查询</button>
		</div>
	</div>
</div>

<div class="apm-gridcontainer">
	{{view view.Grid
		columns=perfColumns
		content=performances
		allowPaging=true
		pageIndex=pageIndex
		pageSize=pageSize
		totalRows=totalRows
		allowSorting=true
		sorted="gridSorted"
		pageIndexChanged="pageIndexChanged"
		class="business-trade-grid"}}
</div>

{{#view view.Dialog
    id=dialogId
    title="设置关键交易"
    class="hide"
    width=300
	height=270
    autoOpen=false
	modal=true
	buttons=dialogButtons}}
    <div id="dialog"> 
    	<div {{bind-attr class=":alert alertType formTip::hide"}}><strong>{{formTip}}</strong></div>
        <div class="control-group">
			<label class="business-nodedetail-trade-label">交易名称</label>
			<div class="controls">
				{{input class="input span2" tooltip="" value=tradeName}}
			</div>
		</div>
		<div class="control-group">
			<label class="business-nodedetail-trade-label">Apdex T</label>
			<div class="controls">
				{{input class="input span2" tooltip="" value=apdex_t}}（秒）
			</div>
		</div>
    </div>
{{/view}}